#include "nrf24l01.h"
nRF24L01 rf;
byte TX_ADDRESS[5]  = 
{
  0x85,0x44,0x75,0x76,0x22
}; 
byte tx_buf[32] = {0};
//***************************************************
void setup() 
{
  Serial.begin(9600);
  rf.initPins ();
  Serial.println("*****************TX_Mode start*****************************");
  uint8_t sta = rf.readValueFromRegister ( STATUS);
  Serial.print("sta = ");
  Serial.print(sta,HEX);
  Serial.println(" ");
  Serial.println(" **************************************************************");
  uint8_t addr[5] = {0x01,0x02,0x03,0x04,0x05};
  rf.applyRFSettings (TX_ADDRESS); 
                    
}
static int i = 3 ;
void loop() 
{ 
      Serial.print("tx_buf[0] = ");
      Serial.println(tx_buf[0],DEC);
      rf.Tx_Packages(tx_buf);
      uint8_t sta = rf.checkACK();
      Serial.print ("sta = ");
      Serial.println(sta,HEX); 
      tx_buf[0]=i;
      i = i + 1 ;
      delay(1000);
} 
